package ibmetp.mis.controller.bulletin;

import ibmetp.mis.service.BulletinService;
import ibmetp.mis.serviceImpl.BulletinServiceImpl;


import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class BulletinDelServlet  extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
    /**
     * @see HttpServlet#HttpServlet()
     */
    public BulletinDelServlet() {
        super();
        // TODO Auto-generated constructor stub
    }

	/**
	 * @see HttpServlet#service(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
		System.out.println("Calling BulletinDelServlet..");
		//公告Id数组
		String BulletinIds=request.getParameter("BulletinId");
	
		
		
		//删除公告
		if(BulletinIds!=null){
		System.out.println("Del BulletinIds:"+BulletinIds);
		BulletinService bl=new BulletinServiceImpl();
		bl.deleteByIds(BulletinIds);		
		}
	}


}
